package com.aliyun.messagemgt.dto.vo.weixin;

import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * @Author: Xiaohang Lv
 * @Date: 2019/5/15 16:42
 */
public class WeixinVoiceSendModelVO extends WeixinSendModelVO {
    private Voice voice;

    public WeixinVoiceSendModelVO() {
        super.setMsgtype("voice");
        voice = new Voice();
    }

    public WeixinVoiceSendModelVO setMediaId(String mediaId) {
        voice.mediaId = mediaId;
        return this;
    }

    public Voice getVoice() {
        return voice;
    }

    public WeixinVoiceSendModelVO setVoice(Voice voice) {
        this.voice = voice;
        return this;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }

    static class Voice {
        private String mediaId;

        public String getMediaId() {
            return mediaId;
        }

        public Voice setMediaId(String mediaId) {
            this.mediaId = mediaId;
            return this;
        }

        @Override
        public String toString() {
            return ToStringBuilder.reflectionToString(this);
        }
    }
}
